/*
 * @Author: DUST
 * @Date: 2023-08-22 16:59:53
 * @LastEditors: DUST
 * @LastEditTime: 2023-08-22 16:59:53
 * @FilePath: \workbook_manage\src\router\index.ts
 * @Description: 
 * undefined
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  {
    path: '/Home',
    component: () => import('@/views/Home.vue'),
    meta: { title: '自述文件' },
    children: [
      {
        path: '/user',
        component: () => import('@/views/UserPage.vue'),
        meta: { title: 'user' }
      },
      {
        path: '/content',
        component: () => import('@/views/ContentPage.vue'),
        meta: { title: 'content' }
      },
    ]
  },
  {
    path: '/',
    component: () => import('@/views/Login.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
